package org.japo.java.basics.main;

import java.util.Scanner;

public class CelsiusFahrenheit {

    public static void main(String[] args) {
        // Instancia un objeto escanner
        Scanner sc = new Scanner(System.in);

        // Introduce grados Celsius
        System.out.print("Grados Celsius .....: ");
        double gradosC = sc.nextDouble();
        
        // Calcula grados Fahrenheit
        double gradosF = gradosC * 180 / 100 + 32;
        System.out.println("Grados Fahrenheit ..: " + gradosF);
    }
}
